//导入game
import Game from "./game.js";

//打开页面初始化游戏
const g = new Game('.map','.score')
//按dom 书写游戏
const startBtn = document.querySelector('.start')
startBtn.addEventListener('click',() =>{
g.start()
})
const stopBtn = document.querySelector('.stop')
stopBtn.addEventListener('click',() =>{
g.stop()
})
const restartBtn = document.querySelector('.restart')
restartBtn.addEventListener('click',() =>{
g.restart()
})
